package net.lovesrc.allin.jobs.backup;

import net.lovesrc.allin.biz.huim.HuiMService;
import net.lovesrc.allin.jobs.base.BaseJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

@Component
@Profile("live")
public class HuiMJob extends BaseJob {

    @Autowired
    private HuiMService huiMService;

    @Override
    public void runOnce() {
        huiMService.processUserLike();
    }

    @Override
    protected long intervalMilliseconds() {
        return 300 * 1000;
    }

}
